package com.haoke.details.config;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.haoke.cache.redis.RedisCacheConfiguration;
import org.springframework.cache.CacheManager;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.redis.connection.RedisConnectionFactory;

/**
 * @author yue13
 * <p>
 * 商品详情配置类型
 */
@Configuration

public class DetailsConfiguration extends RedisCacheConfiguration {
    /**
     * 创建缓存管理器。
     *
     * @param redisConnectionFactory Redis连接工厂
     * @return
     */
    @Bean
    public CacheManager cacheManager(RedisConnectionFactory redisConnectionFactory) {

        return super.cacheManager(redisConnectionFactory);
    }
}
